﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.OleDb;
namespace DAO
{
    public class AbstractDao
    {     
        //hàm lấy chuỗi kết nối, mở kết nối
          protected static OleDbConnection ConnectionData() 
         {
            
              String strCn = "Provider = Microsoft.Jet.OLEDB.4.0; Data Source=QuanLyKhachSan.mdb";
              OleDbConnection cn=new OleDbConnection(strCn);
              cn.Open();
              return cn;
         }
    }
}
